package lesson4;

/**
 * 车辆实体类
 */
public class Car {
    /**
     *车牌号
     */
    private String cardNum;

    public Car() {
    }

    public Car(String cardNum) {
        this.cardNum = cardNum;
    }

    public Car(Car car){
        this.cardNum = car.cardNum;
    }

    /**
     * 获取车牌号
     * @return
     */
    public String getCardNum() {
        return cardNum;
    }

    /**
     * 设置车牌号
     * @param cardNum
     */
    public void setCardNum(String cardNum) {
        this.cardNum = cardNum;
    }
}
